--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 69b02a2a86984128664cfe6829d19657dfd4f57e
Parents : a6764d3
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-19T11:36:56-05:00
feat(android): add task to build Android wheels for Chaquopy and update CI workflows to remove ffmpeg dependency
Changes
3 files changed, 15 insertions(+), 2 deletions(-)
Diff
diff --git a/.gitea/workflows/build-test.yml b/.gitea/workflows/build-test.yml
index bfc55710..ecf155c5 100644
--- a/.gitea/workflows/build-test.yml
+++ b/.gitea/workflows/build-test.yml
@@ -45,7 +45,7 @@ jobs:
run: |
sh scripts/ci/exec-priv.sh dpkg --add-architecture i386
sh scripts/ci/exec-priv.sh apt-get update
- sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 ffmpeg espeak-ng zip rpm elfutils appstream appstream-util
+ sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 espeak-ng zip rpm elfutils appstream appstream-util
- name: Setup Task
run: sh scripts/ci/setup-task.sh
diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index cb0ce59b..03a51645 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -88,7 +88,7 @@ jobs:
run: |
sh scripts/ci/exec-priv.sh dpkg --add-architecture i386
sh scripts/ci/exec-priv.sh apt-get update
- sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 ffmpeg espeak-ng zip rpm elfutils
+ sh scripts/ci/exec-priv.sh apt-get install -y patchelf libopusfile0 espeak-ng zip rpm elfutils
- name: Setup Task
run: sh scripts/ci/setup-task.sh
diff --git a/Taskfile.yml b/Taskfile.yml
index d1305843..4edeff65 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -477,6 +477,19 @@ tasks:
cp -r meshchatx "{{.PYTHON_SRC_DIR}}/"
echo "MeshChatX Python sources staged. Dependency installation is handled by Chaquopy in android/app/build.gradle."
+ android:wheels:
+ desc: Build the Android (Chaquopy) wheels into android/vendor/. Mirrors CI.
+ vars:
+ ANDROID_WHEEL_PYTHON: '{{.ANDROID_WHEEL_PYTHON | default "3.11"}}'
+ ANDROID_WHEEL_ABIS: '{{.ANDROID_WHEEL_ABIS | default "arm64-v8a,x86_64,armeabi-v7a"}}'
+ ANDROID_WHEEL_CHAQUOPY_REF: '{{.ANDROID_WHEEL_CHAQUOPY_REF | default "9f563f45108a873d7feb363e1f754c0173f1114e"}}'
+ cmds:
+ - |
+ bash scripts/build-android-wheels-local.sh \
+ --python-minor "{{.ANDROID_WHEEL_PYTHON}}" \
+ --chaquopy-ref "{{.ANDROID_WHEEL_CHAQUOPY_REF}}" \
+ --abis "{{.ANDROID_WHEEL_ABIS}}"
+
android:build:
desc: Build Debug APK
deps: [android:prepare]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────